/*=============================================================================
                    AUTOMATED LOGIC CORPORATION
            Copyright (c) 1999 - 2010 All Rights Reserved
     This document contains confidential/proprietary information.
===============================================================================

   @(#)TitledPanel

   Author(s) Matt
   Created: Oct 28, 2010, 5:07:40 PM
 
===============================================================================*/
package Utilities;

import java.util.ArrayList;
import java.util.List;

/**
 <!=========================================================================>
 This holds our virtual buttons.
 Date: Oct 28, 2010
 Time: 5:07:40 PM
 @author Matt
 <!==========================================================================> */
public class TitledPanel
{

    //Title that will appear at the top of the panel.
    String title;
    List<VirtualButton> buttons = new ArrayList<VirtualButton>();

    TitledPanel( String title ) {
        this.title = title;
    }

    public void addButton( VirtualButton vb )
    {
        buttons.add( vb );
    }

    public List<VirtualButton> getButtons()
    {
        return buttons;
    }

    public String getTitle()
    {
        return title;
    }

}